package com.zoweunion.mechanic.dao;

import com.zoweunion.mechanic.entity.TSBdCarDevRelationEntity;
import com.zoweunion.mechanic.entity.dto.TSBdCarDevRelationDTO;
import com.zoweunion.mechanic.entity.vo.TSBdCarDevRelationVO;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * ${comments}
 *
 * @author wxx
 * @date 2023-05-25 14:05:29
 */
@Mapper
public interface TSBdCarDevRelationMapper extends BaseMapper<TSBdCarDevRelationEntity> {

    /**
     * 查询所有数据
     *
     * @return
     */
    List<TSBdCarDevRelationEntity> listShow();

    /**
     * 查询记录条数
     *
     * @return
     */
    int countByCondition(TSBdCarDevRelationDTO tSBdCarDevRelation);

    /**
     * 条件查询数据
     *
     * @return
     */
    List<TSBdCarDevRelationVO> findByCondition(Map<String, Object> map);

    /**
     * 条件查询数据分页
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<TSBdCarDevRelationVO> selectListPage(Page<TSBdCarDevRelationDTO> page, @Param(Constants.WRAPPER) QueryWrapper<TSBdCarDevRelationDTO> queryWrapper);


    /**
     * 条件查询taskNo
     *
     * @param queryWrapper
     * @return
     */
    List<TSBdCarDevRelationVO> selectTaskNo(@Param(Constants.WRAPPER) QueryWrapper<TSBdCarDevRelationDTO> queryWrapper);


}

